<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>易商通运营平台</title>
    <script type="text/javascript" src="__PUBLIC__/libs/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/framework.js"></script>
    <link href="__PUBLIC__/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" id="skin" prePath="__PUBLIC__/"/>
    <link rel="stylesheet" type="text/css" id="customSkin"/>
    <script type="text/javascript" src="__PUBLIC__/libs/js/form/datePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="__PUBLIC__/libs/js/nav/pageNumber.js"></script>
    <style>body {
        background-color: #dbeefd
    }</style>
</head>
<body>
<div class="box1">
    <fieldset style="border-color:#999999;">

        <legend>任务大厅</legend>
        <table class="tableStyle">
            <tr>
                <td>任务编号</td>
                <td>任务名</td>
                <td>关键词</td>
                <td>域名</td>
                <td>类型</td>
                <td>创建日期</td>
                <td>截至日期</td>
                <td>网站资料</td>
                <td>操作</td>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td>{$vo['id']}</td>
                    <td><a href="__URL__/taskcontent/id/{$vo['id']}" title="查看当前任务的详细信息">{$vo['name']}</a></td>
                    <td>{$vo['keyword']}</td>
                    <td>{$vo['domain']}</td>
                    <td>{$vo['ttname']}</td>
                    <td>{$vo['createtime']}</td>
                    <td>{$vo['deadline']}</td>
                    <td>
                        <a href="__APP__/task/taskcontent/id/{$vo['id']}" title="查看详细信息">
                            查看详细信息</a>
                    </td>
                    <td>

                        <?php

                        switch($vo["status"])

                       // if($vo["status"]==0)
                        {
case "0":
                        ?>

                        <form method="post" action="__URL__/taketask">
                            <input type="hidden" value="{$vo['id']}" name="taskid"/>
                            <input type="submit" value="领取"/>
                        </form>
                        <?php
                    break;
                    case "1":
                        echo "已领取";
                         echo ' <a href="'.U('task/taskfinish/',array('id'=>$vo['id']) ).'">完成任务</a>';
                            break;
                        case "2":
                            echo "已完成";
                            break;
                        default:
                            echo "未生效";
                            break;
                    }
                    ?>


                    </td>
                </tr>
            </volist>

        </table>
    </fieldset>
</div>
</body>
</html>